package com.tongzhan;

import com.tongzhan.annotation.ApplicationName;
import com.tongzhan.config.CustomMongoRepositoryFactoryBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;

@ApplicationName("云统战侨台端")
@EnableMongoRepositories(repositoryFactoryBeanClass = CustomMongoRepositoryFactoryBean.class)
@SpringBootApplication(exclude={DataSourceAutoConfiguration.class})
@EnableFeignClients
@EnableScheduling
public class TongzhanQiaotaiApplication {

    public static void main(String[] args) {
        SpringApplication.run(TongzhanQiaotaiApplication.class, args);
    }

}
